DEFINITION MODULE DCFileIO;

(*---------------------------------------------------------------------*)
(*   File I/O module for DegasConvert                                  *)
(*                                                                     *)
(*   Functions:                                                        *)
(*      Load & Save Degas Format Pictures                              *)
(*      Load 'TNY' pictures and NEO and DOODLE and ...                 *)
(*                 						       *)
(*  Amendments:                                                        *)
(*  27/ 8/89 LGM : Remove DeleteFile.                                  *)
(*                 Add routines to load various types of pictures.     *)
(*                 Thanx to Ron Wood for asking for this extra         *)
(*                 facility and causing a re-write of the loading      *)
(*                 routines ( they must have needed it... ).           *)
(*                                                                     *)
(*  ??/11/88 LGM      : Save '.IMG' Files.                             *)
(*                      Load 'Tiny' files with extension 'TN*'         *)
(*                                                                     *)
(*  ??/ 8/87 LGM : Original                                            *)
(*---------------------------------------------------------------------*)
FROM Strings          IMPORT String;

FROM DCGlobal         IMPORT DegasPicture;

FROM SYSTEM           IMPORT ADDRESS;


PROCEDURE LoadDegasFile ( VAR Picture  : DegasPicture;
                          VAR filename : String ) : BOOLEAN;
     (* TRUE if user selected and Loaded a valid Degas or TNY file *)


PROCEDURE SaveDegasFile ( VAR Picture  : DegasPicture ) : BOOLEAN;
     (* TRUE if user actually saved the file *)


PROCEDURE SaveImageFile (     Length   : CARDINAL;
                          IMGFilePtr   : ADDRESS ) : BOOLEAN;
     (* TRUE if user actually saved the file *)


END DCFileIO.  
